package com.zr.serviceImpl;

import com.zr.dao.TeacherDaoHyx;
import com.zr.daoImpl.TeacherDaoImplHyx;
import com.zr.model.Teacher;
import com.zr.service.TeacherServiceHyx;

import net.sf.json.JSONArray;

public class TeacherServiceImplHyx implements TeacherServiceHyx {

	TeacherDaoHyx tdao = new TeacherDaoImplHyx();
	/**
	 * 查找老师返回JSON格式
	 */
	@Override
	public JSONArray selectTeacherByTid(int tid) {
		JSONArray js = JSONArray.fromObject(tdao.selectTeacherByTid(tid)); 
		return js;
	}
	
	
	/**
	 * 修改老师的个人信息
	 */
	@Override
	public boolean updateTeacher(int tid, String tname, String tage, String tsex, String address, String tpnumber) {		
		return tdao.updateTeacher(tid, tname, tage, tsex, address, tpnumber);
	}

}
